<script setup>
import { useUserStore } from '@/store/modules/user';
import { onMounted } from 'vue';
import { getTime } from '@/utils/time';
const userStore = useUserStore()

</script>


<template>
    <div>
        <el-card>
            <div class="home">
                <img :src="userStore.avatar" alt="">
                <div class="right">
                    <h3 class="title">{{getTime()}}好呀{{ userStore.username }}</h3>
                    <p class="subtitle">硅谷甄选运营平台</p>
                </div>
            </div>
        </el-card>
        <div class="bottom">
            <svg-icon name="welcome" width="600px" height="300px"></svg-icon>
        </div>
    </div>
</template>


<style scoped lang='scss'>
    .home{
        display: flex;
        align-items: center;
        img{
            width: 100px;
            height: 100px;
            border-radius: 50%;
        }
        .right{
            margin-left: 20px;
            .title{
                font-size: 30px;
                font-weight: bold;
                margin-bottom: 30px;
            }
            .subtitle{
                font-style: italic;
                color: skyblue;
            }
        }
    }

    .bottom{
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
</style>